<template>
  <div class="continer">
    <div class="publish_content">
      <div class="publish_sections">
        <div class="publih_publish">
          <div class="member_member">
            <div class="vip_member" @click="vip_member()">
              <div class="vip_text">VIP会员</div>
            </div>
            <div class="senior_member" @click="senior_member()">
              <div class="senior_text">高级会员</div>
            </div>
          </div>
          <div @click="close_cloe()"><img src="../assets/closes.png" /></div>
        </div>

        <div class="member_content" v-if="is_memer == false">
          <div class="Membership_package">
            <div
              :class="seled_val == 1 ? 'selected_memberPack_memberPack' : ''"
              @click="Membership_package(1)"
            >
              <h5 class="member_time">1个月</h5>
              <p class="member_distout"><span>$64.99</span> 折扣99%</p>
              <p
                class="member_month"
                :class="seled_val == 1 ? 'selected_month_month' : ''"
              >
                $64.99/月
              </p>
            </div>
            <!-- 2 -->
            <div
              @click="Membership_package(2)"
              :class="seled_val == 2 ? 'selected_memberPack_memberPack' : ''"
            >
              <h5 class="member_time">3个月</h5>
              <p class="member_distout"><span>$149.99</span> 折扣78%</p>
              <p
                class="member_month"
                :class="seled_val == 2 ? 'selected_month_month' : ''"
              >
                $49.99/月
              </p>
            </div>
            <!-- 3 -->
            <div
              @click="Membership_package(3)"
              :class="seled_val == 3 ? 'selected_memberPack_memberPack' : ''"
            >
              <h5 class="member_time">6个月</h5>
              <p class="member_distout"><span>$239.99</span> 折扣70%</p>
              <p
                class="member_month"
                :class="seled_val == 3 ? 'selected_month_month' : ''"
              >
                $39.99/月
              </p>
            </div>
          </div>
          <!-- 特权 -->
          <div class="privilege_section">
            <div class="privilege_titles">特权</div>
            <div class="privilege_content">
              <div class="privilege_privilege">
                <img src="../assets/memer/honorable.png" />
                <div>尊贵身份标志</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/see.png" />
                <div>查看点赞我的人</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/trlate.png" />
                <div>每天无限交友</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/honorable.png" />
                <div>消息已读未读</div>
              </div>
              <!-- 222 -->
              <div class="privilege_privilege">
                <img src="../assets/memer/honorable.png" />
                <div>2000/天翻译字符</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/see.png" />
                <div>专属客服服务</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/trlate.png" />
                <div>卡片礼物打折</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/honorable.png" />
                <div>发送分享图片</div>
              </div>
            </div>
          </div>
          <!-- test -->
          <div class="publish_imgs">
            <div class="upload_imgs">总价：<span>$219.99</span></div>
            <div class="publish_button">付款</div>
          </div>
        </div>
        <!-- 高级会员 -->
        <div class="member_content" v-if="is_memer == true">
          <div class="Membership_package">
            <div
              :class="seled_val == 1 ? 'selected_memberPack' : ''"
              @click="Membership_package(1)"
            >
              <h5 class="member_time">1个月</h5>
              <p class="member_distout"><span>$64.99</span> 折扣99%</p>
              <p
                class="member_month"
                :class="seled_val == 1 ? 'selected_month' : ''"
              >
                $64.99/月
              </p>
            </div>
            <!-- 2 -->
            <div
              @click="Membership_package(2)"
              :class="seled_val == 2 ? 'selected_memberPack' : ''"
            >
              <h5 class="member_time">3个月</h5>
              <p class="member_distout"><span>$149.99</span> 折扣78%</p>
              <p
                class="member_month"
                :class="seled_val == 2 ? 'selected_month' : ''"
              >
                $49.99/月
              </p>
            </div>
            <!-- 3 -->
            <div
              @click="Membership_package(3)"
              :class="seled_val == 3 ? 'selected_memberPack' : ''"
            >
              <h5 class="member_time">6个月</h5>
              <p class="member_distout"><span>$239.99</span> 折扣70%</p>
              <p
                class="member_month"
                :class="seled_val == 3 ? 'selected_month' : ''"
              >
                $39.99/月
              </p>
            </div>
          </div>
          <!-- 特权 -->
          <div class="privilege_section">
            <div class="privilege_titles">特权</div>
            <div class="privilege_content">
              <div class="privilege_privilege">
                <img src="../assets/memer/honorable.png" />
                <div>尊贵身份标志</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/see.png" />
                <div>查看点赞我的人</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/trlate.png" />
                <div>每天无限交友</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/honorable.png" />
                <div>消息已读未读</div>
              </div>
              <!-- 222 -->
              <div class="privilege_privilege">
                <img src="../assets/memer/honorable.png" />
                <div>2000/天翻译字符</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/see.png" />
                <div>专属客服服务</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/trlate.png" />
                <div>卡片礼物打折</div>
              </div>
              <div class="privilege_privilege">
                <img src="../assets/memer/honorable.png" />
                <div>发送分享图片</div>
              </div>
            </div>
          </div>
          <!-- test -->
          <div class="publish_imgs">
            <div class="upload_imgs">总价：<span>$219.99</span></div>
            <div class="publish_button">付款</div>
          </div>
        </div>

        <!---->
      </div>
      <!----->
    </div>
    <div class="mask_contet" @click="close_cloe()"></div>
  </div>
</template>
<script>
export default {
  name: "UpgradeMember",
  data: () => ({
    seled_val: 1,
    is_memer: true, //是否显示vip会员
  }),
  methods: {
    close_cloe() {
      this.$emit("closes");
    },
    Membership_package(val) {
      this.seled_val = val;
    },
    //vip会员
    vip_member() {
      this.is_memer = false;
    },
    //高级会员
    senior_member() {
      this.is_memer = true;
    },
  },
};
</script>
<style  scoped>
.continer {
  width: 100%;
}
.publish_content {
  width: 50%;
  margin: 0 auto;
  position: fixed;
  top: 25%;
  left: 0;
  right: 0;
  z-index: 99999;
  border-radius: 10px;
  padding-bottom: 12px;
  padding-top: 12px;
}
.publish_sections {
  width: 90%;
  margin: 0 auto;
}
.publih_publish {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 16px;
  font-family: PingFang SC;
  font-weight: bold;
  opacity: 0.9;
  color: #000000;
}
.member_member {
  width: 100%;
  display: flex;
  align-items: center;
}
/* vip会员 */
.vip_member {
  background: url("../assets/vip_background.png") center no-repeat;
  font-size: 20px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #ffffff;
  /* width:40%;  */
  width: 208px;
  height: 50px;
  line-height: 50px;
  text-align: center;
}
/* 高级会员 */
.senior_member {
  background: url("../assets/senior_background.png") center no-repeat;
  font-size: 20px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #7c561e;
  height: 50px;
  line-height: 50px;
  text-align: center;
  width: 208px;
}
/* //会员内容 */
.member_content {
  width: 100%;
  background-color: #ffffff;
  border-radius: 10px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.Membership_package {
  width: 95%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.Membership_package div {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  text-align: center;
  width: 30.5%;
  padding: 15px 5px;
}
.selected_memberPack {
  background: #fffaf0 !important;
  border: 1px solid #eec989 !important;
  border-radius: 6px;
}
.selected_month {
  color: #b18545 !important;
}
.selected_memberPack_memberPack {
  background: #f9fafe !important;
  border: 1px solid #4064e3 !important;
  border-radius: 6px;
}
.selected_month_month {
  font-size: 18px;
  font-family: DIN;
  font-weight: bold;
  color: #4064e3 !important;
}

.member_time {
  font-size: 22px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #383e49;
}
.member_distout {
  font-size: 16px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #b18545;
  margin-top: 5px;
}
.member_distout span {
  font-size: 28px;
  font-family: DIN;
  font-weight: bold;
  color: #383e49;
  margin-right: 10px;
}
.member_month {
  font-size: 18px;
  font-family: DIN;
  font-weight: bold;
  color: #3f444f;
  opacity: 0.9;
  border-radius: 16px;
  width: 50%;
  margin: 10px auto 5px auto;
}
.privilege_section {
  width: 100%;
}
.privilege_titles {
  width: 94%;
  margin: 18px auto 10px auto;
  font-size: 16px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #383e49;
}
.privilege_content {
  width: 90%;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.privilege_privilege {
  display: flex;
  align-items: center;
  width: 21%;
  margin-bottom: 10px;
  font-size: 12px;
  font-family: PingFang SC;
  font-weight: 600;
  color: #383e49;
}
.privilege_privilege img {
  margin-right: 5px;
  width: 20px;
  height: 20px;
}
.publish_imgs {
  width: 90%;
  margin: 10px auto 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.upload_imgs {
  font-size: 18px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #383e49;
}
.upload_imgs span {
  font-size: 28px;
  font-family: DIN;
  font-weight: bold;
  color: #383e49;
}
.publish_button {
  background: linear-gradient(161deg, #637fe7, #3659cf);
  border-radius: 22px;
  font-size: 13px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #ffffff;
  line-height: 32px;
  width: 9%;
  text-align: center;
  height: 32px;
}
.mask_contet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(221, 221, 221, 0.6);
  z-index:9;
}
</style>
      




























